import { ApiProperty } from '@nestjs/swagger';
import { UserRole, AuditStatus } from '../../common/enums';

export class VerifyTokenResponseDto {
  @ApiProperty({
    description: 'User ID',
    example: '123e4567-e89b-12d3-a456-426614174000',
  })
  userId: string;

  @ApiProperty({
    description: 'User role',
    enum: UserRole,
    example: UserRole.USER,
  })
  userRole: UserRole;

  @ApiProperty({
    description: 'Audit status',
    enum: AuditStatus,
    example: AuditStatus.PASS,
  })
  status: AuditStatus;
}

export class VerifyTokenErrorResponseDto {
  @ApiProperty({
    description: 'HTTP status code',
    example: 401,
  })
  statusCode: number;

  @ApiProperty({
    description: 'Error message',
    example: 'Invalid token',
  })
  message: string;
}
